package com.zyark.web.controller;

import com.zyark.domain.SysSetting;
import com.zyark.service.SysSettingService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import tk.mybatis.mapper.entity.Example;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by ron on 17-9-2.
 */
@Controller
@RequestMapping(value = "/api/v1/anon")
public class ClientSettingController {

    @Resource
    SysSettingService sysSettingService;

    @RequestMapping(value = "broadband",method = RequestMethod.GET)
    @ResponseBody
    public Object getBroadband(){
        Example example = new Example(SysSetting.class);
        example.or().andLike("sysCode","01%");
        List<SysSetting> broadbandList = sysSettingService.selectPageByExample(example,null,null);
        //List<String> imageUriList = new ArrayList<>();
        return broadbandList;
    }


}
